package book;

import book.Book;

/**
 * Created with IntelliJ IDEA.
 * Description:书架
 * User: wx
 * Date: 2023-11-14
 * Time: 14:26
 */
public class Booklist {

    private Book[] books ;
    private int usedsize;//记录书架上实际存放书的数量

    public Booklist() {
        this.books = new Book[10];
    }

    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }

    public Book getbook(int pos) {
        return books[pos];
    }

    public void setbook(int pos, Book book){
        books[pos] = book;
    }







}
